package com.hsgene.message.constant;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * @author wxf
 * @date 2018/10/25 14:14
 **/
public enum SMSErrorCode implements ErrorCode {
    /**
     * 推送消息不能为空
     */
    PUSH_INFO_IS_NOT_NULL(90001, "PUSH_INFO_IS_NOT_NULL", "推送消息不能为空"),
    PUSH_INFO_IS_ERROR(90001, "PUSH_INFO_IS_ERROR", "推送消息失败"),
    PAGE_SIZE_IS_NOT_NULL(90001, "PAGE_SIZE_IS_NOT_NULL", "page、size不能为空"),
    PAGE_IS_NOT_LESS_THAN_ZERO(90001, "PAGE_IS_NOT_LESS_THAN_ZERO", "page不能小于0"),
    SMS_LIST_IS_ERROR(90001, "SMS_LIST_IS_ERROR", "消息列表查询失败"),
    SMS_ID_IS_NOT_NULL(90001, "SMS_ID_IS_NOT_NULL", "消息ID不能为空"),
    SMS_IS_NOT_NULL(90001, "SMS_IS_NOT_NULL", "消息不能为空"),
    SMS_DEAL_UPDATE_IS_ERROR(90001, "SMS_DEAL_UPDATE_IS_ERROR", "消息处理更新异常"),
    SMS_ALREADY_DEAL(90001, "SMS_ALREADY_DEAL", "消息已处理"),
    SMS_ADD_IS_ERROR(90001, "SMS_ADD_IS_ERROR", "消息添加异常"),
    USER_INFO_IS_NOT_NULL(90001, "USER_INFO_IS_NOT_NULL", "用户信息不能为空");

    private final int code;

    private final String message;

    private final String description;

    SMSErrorCode(int code, String message, String description) {
        this.code = code;
        this.message = message;
        this.description = description;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
